Keycloak REST Services 1.2.0.Final

Path: / admin / realms / {realm} / clients-by-id / {app-name} / client-secret

Get the secret of this client

Path parameters:
realm - realm name (not id!)
app-name -

Resource Methods
Method Summary
NameDescription
POST /admin/realms/{realm}/clients-by-id/{app-name}/client-secretGenerates a new secret for this client
GET /admin/realms/{realm}/clients-by-id/{app-name}/client-secretGet the secret of this client

Method Detail

POST /admin/realms/{realm}/clients-by-id/{app-name}/client-secret

Generates a new secret for this client

HTTP Example:
POST /admin/realms/{realm}/clients-by-id/{app-name}/client-secret
API Example:

ClientResource.regenerateSecret({'realm': /* name realm name (not id!) */,
  'app-name': /* name */});

Output:
CredentialRepresentation -
Produces:
application/json
Consumes:
application/json

GET /admin/realms/{realm}/clients-by-id/{app-name}/client-secret

Get the secret of this client

HTTP Example:
GET /admin/realms/{realm}/clients-by-id/{app-name}/client-secret
API Example:

ClientResource.getClientSecret({'realm': /* name realm name (not id!) */,
  'app-name': /* name */});

Output:
CredentialRepresentation -
Produces:
application/json

Keycloak REST Services 1.2.0.Final